source: gs3-installations/test-suite/trunk/sites/test-suite/collect/filelevel-docver/TEST-STEP01--INGEST.sh@ 37206

Last change on this file since 37206 was 37206, checked in by davidb, 16 months ago

Further refinement of file naming scheme for testing

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/bin/bash
2
3source ../_local_collect_config.bash
4
5echo ""
6
7echo "****"
8echo "Restoring import files back to original form"
9echo "... and Initiating full rebuild"
10echo "****"
11
12echo ""
13echo "Reverting 09_1_1.item back to its original form"
14/bin/cp testing-files/09_1_1.item import/09/09_1_1.item
15
16echo ""
17echo "Reverting Item 10_1_1 txt and img files back to original version:"
18
19echo " import/10/text/10_1_1_1.txt"
20/bin/cp testing-files/10_1_1_1.txt import/10/text/10_1_1_1.txt
21
22echo " import/10/images/10_1_1_1.gif"
23/bin/cp testing-files/10_1_1_1.gif import/10/images/10_1_1_1.gif
24echo ""
25
26if [ ! -d import/23 ] ; then
27 echo ""
28 echo "Restoring directory import/23"
29 /bin/cp -r testing-files/23 import/.
30fi
31
32if [ -d cached ] ; then
33 echo ""
34 echo "Removeing collection cache"
35 /bin/rm -rf cached
36fi
37
38./FULL-REBUILD.sh
39
40if [ $? = 0 ] ; then
41 echo ""
42 echo "##############################################################################"
43 echo "##############################################################################"
44 echo "##############################################################################"
45 echo ""
46
47 echo ""
48 echo "####"
49 echo "The collection has been reset and freshly rebuilt"
50 echo "####"
51
52 echo ""
53 echo "# Test 1:"
54 echo "Access the collection's About Page in your browser through:"
55 echo " $gs_library_url/collection/$col"
56 echo ""
57 echo "The page should say that it contains 7 documents"
58
59 echo ""
60 echo "# Test 2:"
61 echo "Access the collection's Browser by Title Classifier page (CL1):"
62 echo " $gs_library_url/collection/$col/browse/CL1"
63 echo ""
64 echo "It should list all 7 documents"
65 echo ""
66
67 echo "####"
68 echo ""
69fi
Note: See TracBrowser for help on using the repository browser.