Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
|
||||
BASEDIR="$(dirname $(readlink -f $0))"
|
||||
|
||||
# init and start postgresql server for testing
|
||||
PGDATA="/var/lib/postgresql/data"
|
||||
if [ -f "${PGDATA}/PG_VERSION" ]; then
|
||||
echo "Data directory is not empty! Skip initdb."
|
||||
else
|
||||
echo "Initializing database: "
|
||||
chown -R postgres:postgres ${PGDATA}
|
||||
su -l postgres -c "/usr/bin/initdb --pgdata='$PGDATA'"
|
||||
fi
|
||||
|
||||
SYSV_INIT="/etc/init.d/postgresql-server"
|
||||
if [ -e ${SYSV_INIT} ]; then
|
||||
RESTART_POSTGRESQL="${SYSV_INIT} restart"
|
||||
STOP_POSTGRESQL="${SYSV_INIT} stop"
|
||||
else
|
||||
RESTART_POSTGRESQL="systemctl restart postgresql"
|
||||
STOP_POSTGRESQL="systemctl stop postgresql"
|
||||
fi
|
||||
|
||||
${RESTART_POSTGRESQL} || echo "Failed to restart postgresql, skip the tests."
|
||||
|
||||
if [ ! -d ${BASEDIR}/results ]; then
|
||||
mkdir ${BASEDIR}/results
|
||||
fi
|
||||
|
||||
# Generate odbc config files and reset db
|
||||
${BASEDIR}/odbcini-gen.sh || echo "FAIL: Generate odbc config files"
|
||||
ODBCSYSINI=. ODBCINSTINI=./odbcinst.ini ODBCINI=./odbc.ini \
|
||||
${BASEDIR}/reset-db < ${BASEDIR}/sampletables.sql \
|
||||
|| echo "FAIL: reset db with sample tables"
|
||||
|
||||
# Run the actual tests
|
||||
TESTS=
|
||||
for i in `ls ${BASEDIR}/exe/*-test`; do
|
||||
TESTS="$TESTS $(basename ${i%-test})"
|
||||
done
|
||||
|
||||
${BASEDIR}/runsuite ${TESTS} --inputdir=${BASEDIR}
|
||||
|
||||
# Cleanup
|
||||
${STOP_POSTGRESQL}
|
||||
rm -f regression.diffs odbcinst.ini odbc.ini
|
||||
Reference in New Issue
Block a user