-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtest_library_installers.sh
55 lines (50 loc) · 1.24 KB
/
test_library_installers.sh
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Check library installer routines
# Re-create testing directory
rm -rf library-testing
mkdir library-testing
# terryfy directory location
source library_installers.sh
terryfy_pwd=$PWD
if [[ $TERRYFY_DIR != $terryfy_pwd ]]; then
echo "TERRYFY_DIR != $terryfy_pwd"
RET=1
fi
# Still correct after changing directory?
cd library-testing
# terryfy directory location
source ../library_installers.sh
if [[ $TERRYFY_DIR != $terryfy_pwd ]]; then
echo "TERRYFY_DIR != $terryfy_pwd"
RET=1
fi
# prefixes
set_32_prefix
if [[ $ARCH_FLAGS != '-arch i386' ]]; then
echo "ARCH_FLAGS != '-arch i386"
RET=1
fi
if [[ $CPATH != $PWD/build32/include ]]; then
echo "CPATH is $CPATH, should be $PWD/build32/include"
RET=1
fi
set_64_prefix
if [[ $ARCH_FLAGS != '-arch x86_64' ]]; then
echo "ARCH_FLAGS != '-arch x86_64"
RET=1
fi
if [[ $CPATH != $PWD/build64/include ]]; then
echo "CPATH is $CPATH, should be $PWD/build64/include"
RET=1
fi
set_dual_prefix
if [[ $ARCH_FLAGS != '-arch i386 -arch x86_64' ]]; then
echo "ARCH_FLAGS != '-arch i386 -arch x86_64"
RET=1
fi
if [[ $CPATH != $PWD/build/include ]]; then
echo "CPATH is $CPATH, should be $PWD/build64/include"
RET=1
fi
# Clean up after
cd ..
rm -rf library-testing