Skip to content
Snippets Groups Projects
Commit 0d7ea5ed authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

cleaned up old cicd test files

parent 23f2a63c
No related branches found
No related tags found
No related merge requests found
Pipeline #2165 failed
#/bin/bash
set -e
set -x
main()
{
# gather info for debugging later, probably not necessary
pwd
hostname
whoami
env|grep "^CICD"
git submodule sync
git submodule update --init --recursive
local orig_dir=$(pwd)
# puts irdblibs_umbrella (and all submodules) in CICD_MODULE_WORK_DIR
cicd_setup_module_dependency allnp/peasoup_umbrella.git irdblibs_umbrella
# puts the version of irdb-libs to test in irdblibs_umbrella/irdb-libs
cicd_put_module_in_tree irdblibs_umbrella/irdb-libs
# Build/run $PSZ, test result
cd $CICD_MODULE_WORK_DIR/irdblibs_umbrella
source set_env_vars
sudo ./get-peasoup-packages.sh all
# remove pedi files so that rebuilding includes re-doing pedi setup.
$PEDI_HOME/pedi -c -m manifest.txt || true # ignore errors in cleanup
./build-all.sh
dropdb $PGDATABASE 2>/dev/null || true ; ./postgres_setup.sh
cd $orig_dir
}
main "$@"
#/bin/bash
set -e
set -x
main()
{
# gather info for debugging later, probably not necessary
pwd
hostname
whoami
env|grep "^CICD"
if [[ $CICD_NIGHTLY == 1 ]] ; then
rm -rf $CICD_MODULE_WORK_DIR/irdblibs_umbrella
fi
}
main "$@"
cd $CICD_MODULE_WORK_DIR/irdblibs_umbrella
set -e
set -x
source set_env_vars
cd /tmp
rm -rf cat.rida ped_cat;
$PSZ $(which cat) ./cat.rida -c rida=on -s meds_static=off -c p1transform=on --tempdir ped_cat || true
if [[ ! -x ./cat.rida ]]; then cat ped_cat/logs/*; fi
./cat.rida /dev/null
#!/bin/bash
set -e
set -x
cd $CICD_MODULE_WORK_DIR/irdblibs_umbrella
source set_env_vars
cd /tmp
rm -rf ls.rida ped_ls
$PSZ /bin/ls ./ls.rida -c rida=on -s meds_static=off -c p1transform=on --tempdir ped_ls || true
if [[ ! -x ./ls.rida ]]; then cat ped_ls/logs/*; fi
rm -rf ped_ls
./ls.rida
mylib.so
#!/bin/bash
set -e
set -x
cd $CICD_MODULE_WORK_DIR/ps_pe_umbrella
source set_env_vars
# internal tests that do not require transforming binaries
cd $PEASOUP_HOME/tests
make clean; ./test_cmds.sh -c orig -l
#/bin/bash
set -e
set -x
main()
{
# gather info for debugging later, probably not necessary
pwd
hostname
whoami
env|grep "^CICD"
git submodule sync
git submodule update --init --recursive
local orig_dir=$(pwd)
# puts peasoup_umbrella (and all submodules) in CICD_MODULE_WORK_DIR
cicd_setup_module_dependency allnp/peasoup_umbrella.git ps_pe_umbrella
# puts the version of peasoup_examples to test in ps_pe_umbrella/peasoup_examples
cicd_put_module_in_tree ps_pe_umbrella/peasoup_examples
# Build/run $PSZ, test result
cd $CICD_MODULE_WORK_DIR/ps_pe_umbrella
source set_env_vars
sudo ./get-peasoup-packages.sh all
# remove pedi files so that rebuilding includes re-doing pedi setup.
$PEDI_HOME/pedi -c -m manifest.txt || true # ignore errors in cleanup
./build-all.sh
dropdb $PGDATABASE 2>/dev/null || true ; ./postgres_setup.sh
cd $orig_dir
}
main "$@"
#/bin/bash
set -e
set -x
main()
{
# gather info for debugging later, probably not necessary
pwd
hostname
whoami
env|grep "^CICD"
if [[ $CICD_NIGHTLY == 1 ]] ; then
rm -rf $CICD_MODULE_WORK_DIR/ps_pe_umbrella
fi
}
main "$@"
#!/bin/bash
set -e
set -x
cd $CICD_MODULE_WORK_DIR/ps_pe_umbrella
source set_env_vars
cd $PEASOUP_HOME/tests
make clean
# verify "fail" configuration
./test_cmds.sh -l -c expect_fail -a ls
./test_cmds.sh -l -c expect_fail -a grep
exit 0
cd $CICD_MODULE_WORK_DIR/ps_pe_umbrella
set -e
set -x
source set_env_vars
cd /tmp
rm -rf cat.rida ped_cat;
$PSZ $(which cat) ./cat.rida -c rida=on -s meds_static=off -c p1transform=on --tempdir ped_cat || true
if [[ ! -x ./cat.rida ]]; then cat ped_cat/logs/*; fi
./cat.rida /dev/null
#!/bin/bash
set -e
set -x
cd $CICD_MODULE_WORK_DIR/ps_pe_umbrella
source set_env_vars
cd /tmp
rm -rf ls.rida ped_ls
$PSZ /bin/ls ./ls.rida -c rida=on -s meds_static=off -c p1transform=on --tempdir ped_ls || true
if [[ ! -x ./ls.rida ]]; then cat ped_ls/logs/*; fi
rm -rf ped_ls
./ls.rida
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment