1 |
#!/bin/sh |
2 |
|
3 |
# This script is for testing if the bundled source and test files can |
4 |
# be unzipped to form an installation of escript. |
5 |
|
6 |
# This is the testing directoryi - set to an appropriate destination. |
7 |
export SANDBOX="$HOME/sandbox" |
8 |
|
9 |
# ESYS_ROOT should be set by the environment already. |
10 |
|
11 |
cd $ESYS_ROOT |
12 |
# make the tarballs via the 'release' target in scons |
13 |
scons release |
14 |
|
15 |
# move to the test area, and remove anything there. |
16 |
cd $SANDBOX |
17 |
rm -rf * |
18 |
|
19 |
# copy over the tarballs for testing |
20 |
cp $ESYS_ROOT/release/*.tar.gz . |
21 |
|
22 |
# untar and run scons commands |
23 |
tar -xzvf escript_src.tar.gz |
24 |
scons |
25 |
tar -xzvf escript_tests.tar.gz |
26 |
scons all_tests |
27 |
|