File: macQAT2.sh

package info (click to toggle)
klayout 0.30.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292,204 kB
  • sloc: cpp: 2,068,428; ruby: 47,823; xml: 26,924; python: 14,404; sh: 1,812; tcl: 212; perl: 170; makefile: 112; ansic: 42
file content (40 lines) | stat: -rwxr-xr-x 1,251 bytes parent folder | download
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
#!/bin/bash

#===============================================================================
# File: "macbuild/macQAT2.sh"
#
#  The top Bash script to run "ut_runner" after building KLayout
#  (http://www.klayout.de/index.php) version 0.29.7 or later on different
#  Apple Mac OSX platforms.
#
#  This script must be copied to a directory that can be found in $PATH.
#===============================================================================

prjdir=`pwd`

if [ $# -ge 2 ]; then
	first_arg=$1
	shift
	remaining_args=("$@")
	echo "#########################"
	echo "#  Starging macQAT2.sh  #"
	echo "#########################"
	echo "   Current Dir: $prjdir"
	echo "     First Arg: $first_arg"
	echo "Remaining Args: ${remaining_args[@]}"
	echo ""
	export TESTSRC=../
	export TESTTMP=$first_arg
	export DYLD_LIBRARY_PATH=$prjdir:$prjdir/db_plugins:$prjdir/lay_plugins
	./ut_runner ${remaining_args[@]}
else
	echo "Usage: -------------------------------------------------"
	echo "  $ macQAT2.sh <test_dir> <args to ./ut_runner>"
	echo "    ex. $ change directory to a *.macQAT/"
	echo "        $ macQAT2.sh  __Homebrew  tlGitTests"
	echo "--------------------------------------------------------"
fi

#--------------
# End of File
#--------------