From 0b18e8dd183bd1cfbb91c5ab39644480972dfeb4 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 25 Jun 2012 12:18:51 -0700 Subject: Added scripts to clean up repo and test results. --- scripts/nightly-build.sh | 4 ++++ scripts/pki-build.sh | 2 -- scripts/repo-create.sh | 6 ++++++ scripts/repo-remove.sh | 3 +-- scripts/tet-trim.sh | 7 +++++++ 5 files changed, 18 insertions(+), 4 deletions(-) create mode 100755 scripts/repo-create.sh create mode 100755 scripts/tet-trim.sh diff --git a/scripts/nightly-build.sh b/scripts/nightly-build.sh index 1970834..93f0565 100755 --- a/scripts/nightly-build.sh +++ b/scripts/nightly-build.sh @@ -2,8 +2,12 @@ cd `dirname $0`; +./repo-remove.sh +./repo-create.sh + ./pki-update.sh ./pki-build.sh #./tet-update.sh +./tet-trim.sh ./tet-run.sh diff --git a/scripts/pki-build.sh b/scripts/pki-build.sh index 95ba1e3..b3c21f1 100755 --- a/scripts/pki-build.sh +++ b/scripts/pki-build.sh @@ -6,8 +6,6 @@ ./core-uninstall.sh ./theme-uninstall.sh -./repo-remove.sh - ./theme-build.sh ./theme-install.sh diff --git a/scripts/repo-create.sh b/scripts/repo-create.sh new file mode 100755 index 0000000..9e783fd --- /dev/null +++ b/scripts/repo-create.sh @@ -0,0 +1,6 @@ +#!/bin/sh -x + +SRC_DIR=`cd ../.. ; pwd` + +cd $SRC_DIR +mkdir -p repo diff --git a/scripts/repo-remove.sh b/scripts/repo-remove.sh index 9e783fd..998adc3 100755 --- a/scripts/repo-remove.sh +++ b/scripts/repo-remove.sh @@ -2,5 +2,4 @@ SRC_DIR=`cd ../.. ; pwd` -cd $SRC_DIR -mkdir -p repo +rm -rf $SRC_DIR/repo diff --git a/scripts/tet-trim.sh b/scripts/tet-trim.sh new file mode 100755 index 0000000..8b6f5fc --- /dev/null +++ b/scripts/tet-trim.sh @@ -0,0 +1,7 @@ +#!/bin/sh -x + +SRC_DIR=`cd ../.. ; pwd` +TET_DIR=$SRC_DIR/tet + +cd $TET_DIR/results +rm -rf `ls | head -n -5` -- cgit