-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest_rosetta.sh
More file actions
executable file
·38 lines (30 loc) · 966 Bytes
/
test_rosetta.sh
File metadata and controls
executable file
·38 lines (30 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
## Info ##:
#Script to be added as an alias in .zshrc or equivalent.
#Used for testing master vs current branch integration tests of a local Rosetta Repo.
#Be sure to merge master into current before running test.
## Use ##:
#Replace -jx with whatever you require.
#If you don't use clang - no time quite like the present.
#Start the script in the rosetta_source directory.
current_branch=$(git rev-parse --abbrev-ref HEAD)
git checkout master
#Compile Master
echo Compiling
scons bin mode=release -j7 cxx=clang
cd ../rosetta_tests/integration/
#Test Master
rm -r ref/
echo Running Ref
./integration.py -j7 -c clang -d ../../rosetta_database
cd ../../rosetta_source
echo Checking Out $current_branch
git checkout $current_branch
#Compile branch
echo Compiling branch
scons bin mode=release -j7 cxx=clang
cd ../rosetta_tests/integration/
#Test branch
rm -r new/
echo Running New
./integration.py -j7 -c clang -d ../../rosetta_database
diff -r new/ ref/