aboutsummaryrefslogtreecommitdiffstats
path: root/test/04-rebuild.test
blob: 503afc40759d7d71bf619d609a870d161680f4f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

header "bosun rebuild"

mkdir "$BOSUN_DIR/app-foo/package.accept_keywords" || exit 1
touch "$BOSUN_DIR/app-foo/package.accept_keywords/30-app-foo" || exit 1

assert success "rebuild app-foo" "$BOSUN_CMD" rebuild app-foo

want <<EOF
./package.accept_keywords/20-service-bar -> ../stow/service-bar/package.accept_keywords/20-service-bar
./package.accept_keywords/30-app-foo -> ../stow/app-foo/package.accept_keywords/30-app-foo
./package.use/20-service-bar -> ../stow/service-bar/package.use/20-service-bar
./package.use/30-app-foo -> ../stow/app-foo/package.use/30-app-foo
EOF

have_links

assert_output_matches "rebuilds role"

end