Skip to content
Snippets Groups Projects
Unverified Commit f08259cc authored by Ryan Hancock's avatar Ryan Hancock
Browse files

Zero out previous logs

parent 1b549d4e
No related branches found
No related tags found
No related merge requests found
...@@ -109,3 +109,16 @@ Within the `/assignments` directory there are subdirectories for each assignment ...@@ -109,3 +109,16 @@ Within the `/assignments` directory there are subdirectories for each assignment
If the assignments repo has changed, either due to assignments being changed or bugs found (found at `os161-container/assignments`) you will need to just run `sudo ./install.sh` again. If the assignments repo has changed, either due to assignments being changed or bugs found (found at `os161-container/assignments`) you will need to just run `sudo ./install.sh` again.
## Common Issues
**Commands do not work and also there is randomly ^M, strings within the output:**
This is due to windows placing return characters in the strings that get
passed to the scripts. Please use git bash or a terminal that does UNIX
string passing.
**Cannot figure out the host**
This occurs within newer level Macs that use Apple Silicon, docker
currently requires x86 architectures to work, you'll need to use the
student environment.
...@@ -28,6 +28,7 @@ build_k_helper() { ...@@ -28,6 +28,7 @@ build_k_helper() {
# Configure - step 1 # Configure - step 1
echo "[CS350] $1 Configuring Kernel..." echo "[CS350] $1 Configuring Kernel..."
touch $LOGS/configure.log touch $LOGS/configure.log
truncate -s 0 $LOGS/configure.log
./configure --ostree=/os-compile --toolprefix=mips-harvard-os161- >> $LOGS/configure.log ./configure --ostree=/os-compile --toolprefix=mips-harvard-os161- >> $LOGS/configure.log
cd kern/conf cd kern/conf
./config $1 >> $LOGS/configure.log ./config $1 >> $LOGS/configure.log
...@@ -36,10 +37,12 @@ build_k_helper() { ...@@ -36,10 +37,12 @@ build_k_helper() {
cd ../compile/$1 cd ../compile/$1
echo "[CS350] $1 Making Kernel..." echo "[CS350] $1 Making Kernel..."
touch $LOGS/depend.log touch $LOGS/depend.log
truncate -s 0 $LOGS/depend.log
bmake depend >> $LOGS/depend.log 2>> $LOGS/depend.log bmake depend >> $LOGS/depend.log 2>> $LOGS/depend.log
# Make and install - step 3 # Make and install - step 3
touch $LOGS/make.log touch $LOGS/make.log
truncate -s 0 $LOGS/make.log
bmake WERROR= >> $LOGS/make.log 2>> $LOGS/make.log bmake WERROR= >> $LOGS/make.log 2>> $LOGS/make.log
bmake install >> $LOGS/make.log 2>> $LOGS/make.log bmake install >> $LOGS/make.log 2>> $LOGS/make.log
...@@ -60,7 +63,6 @@ test_kernel() { ...@@ -60,7 +63,6 @@ test_kernel() {
if [ "$#" -ne 1 ]; then if [ "$#" -ne 1 ]; then
echo "Usage: test_kernel <ASST0, ASST1 ...>" echo "Usage: test_kernel <ASST0, ASST1 ...>"
fi fi
echo $LOGS
cd /os-compile cd /os-compile
echo "[CS350] Tests $1" echo "[CS350] Tests $1"
...@@ -72,6 +74,7 @@ test_kernel() { ...@@ -72,6 +74,7 @@ test_kernel() {
TOTAL=$(wc -l < $f) TOTAL=$(wc -l < $f)
DONE=0 DONE=0
touch $LOG touch $LOG
truncate -s 0 $LOG
for p in `cat $f` for p in `cat $f`
do do
echo ">SPLIT<" >> $LOG echo ">SPLIT<" >> $LOG
...@@ -82,7 +85,6 @@ test_kernel() { ...@@ -82,7 +85,6 @@ test_kernel() {
done done
done done
cd - > /dev/null cd - > /dev/null
echo $LOGS
/evalaute $LOGS/test_public.log /assignments/$1 /evalaute $LOGS/test_public.log /assignments/$1
} }
......
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