toaruos/.build-travis.sh
Kevin Lange bba242dd62 Add a testing framework.
This is an automated system by which we boot qemu headless and use the
serial line to capture output from a testing application that is started
on bootup, running with the VGA terminal shell. This might be expanded
to boot to the graphical display within VNC and perform more advanced
tests with the Python shim using a VNC module for Python; we'll see.
2012-09-02 02:24:25 -07:00

19 lines
536 B
Bash
Executable File

#!/bin/bash
unset CC
sudo apt-get install clang yasm genext2fs build-essential wget libmpfr-dev libmpc-dev libgmp-dev qemu autoconf automake texinfo
# Build the toolchain: (silently)
pushd toolchain
./prepare.sh > /dev/null 2>/dev/null || exit 1
./install.sh > /dev/null 2>/dev/null || exit 1
. activate.sh > /dev/null 2>/dev/null || exit 1
popd
# Build the userspace tools:
pushd userspace
make || exit 1
popd
# Build the kernel
make system || exit 1 # to build the kernel
# Boot it up and run some tests
make test || exit 1