File tree Expand file tree Collapse file tree 4 files changed +33
-2
lines changed Expand file tree Collapse file tree 4 files changed +33
-2
lines changed Original file line number Diff line number Diff line change
1
+ source " utils.sh"
2
+
3
+ rewatch_legacy () { RUST_BACKTRACE=1 " ../../$REWATCH_EXECUTABLE " legacy $@ ; }
Original file line number Diff line number Diff line change
1
+ source " ./legacy-utils.sh"
2
+ cd ../testrepo/packages/compiled-by-legacy
3
+
4
+ bold " Test: It should use the legacy build system"
5
+
6
+ if rewatch_legacy clean & > /dev/null;
7
+ then
8
+ success " Test package cleaned"
9
+ else
10
+ error " Error cleaning test package"
11
+ exit 1
12
+ fi
13
+
14
+ if rewatch_legacy build & > /dev/null;
15
+ then
16
+ success " Test package built"
17
+ else
18
+ error " Error building test package"
19
+ exit 1
20
+ fi
21
+
22
+ if git diff --exit-code ./;
23
+ then
24
+ success " Test package has no changes"
25
+ else
26
+ error " Build has changed"
27
+ exit 1
28
+ fi
Original file line number Diff line number Diff line change 27
27
# Count files with new extension
28
28
file_count=$( find ./packages -name * .res.js | wc -l)
29
29
30
- if [ " $file_count " -eq 24 ];
30
+ if [ " $file_count " -eq 25 ];
31
31
then
32
32
success " Found files with correct suffix"
33
33
else
Original file line number Diff line number Diff line change 40
40
exit 1
41
41
fi
42
42
43
- ./compile.sh && ./watch.sh && ./lock.sh && ./suffix.sh
43
+ ./compile.sh && ./watch.sh && ./lock.sh && ./suffix.sh && ./legacy.sh
You can’t perform that action at this time.
0 commit comments