-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from chaos4ever/feature/added-unit-test-infras…
…tructure Added unit test infrastructure
- Loading branch information
Showing
26 changed files
with
518 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
env: CC=gcc | ||
before_script: | ||
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y | ||
- sudo apt-get update | ||
- sudo apt-get install g++-4.7 nasm | ||
- sudo apt-get install gcc-multilib nasm | ||
- ./install_cmocka.sh | ||
script: | ||
- rake | ||
- rake tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
Vagrant.configure(2) do |config| | ||
config.vm.box = 'chef/debian-7.8' | ||
config.vm.provision 'shell', inline: <<-SHELL | ||
set -e | ||
sudo apt-get update | ||
sudo apt-get install -y git mtools nasm rake astyle qemu | ||
echo 'cd /vagrant' >> /home/vagrant/.bashrc | ||
cd /vagrant && bzip2 -dc misc/grub.img.bz2 > floppy.img | ||
echo 'drive a: file="/vagrant/floppy.img" 1.44m mformat_only' > /etc/mtools.conf | ||
echo '-U' > /home/vagrant/.astylerc | ||
echo '-H' >> /home/vagrant/.astylerc | ||
echo '-S' >> /home/vagrant/.astylerc | ||
set -e | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
astyle \ | ||
cmake \ | ||
gcc-multilib \ | ||
git \ | ||
mtools \ | ||
nasm \ | ||
qemu \ | ||
rake | ||
cd /vagrant | ||
./install_cmocka.sh | ||
cd /vagrant && bzip2 -dc misc/grub.img.bz2 > floppy.img | ||
echo 'drive a: file="/vagrant/floppy.img" 1.44m mformat_only' > /etc/mtools.conf | ||
echo 'cd /vagrant' >> /home/vagrant/.bashrc | ||
echo '-U' > /home/vagrant/.astylerc | ||
echo '-H' >> /home/vagrant/.astylerc | ||
echo '-S' >> /home/vagrant/.astylerc | ||
SHELL | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
cd /tmp | ||
rm -rf cmocka* | ||
wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz | ||
tar xf cmocka-1.0.1.tar.xz | ||
cd cmocka-1.0.1 | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_C_FLAGS=-m32 .. | ||
make | ||
sudo make install | ||
sudo sh -c 'echo /usr/local/lib >> /etc/ld.so.conf' | ||
sudo /sbin/ldconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.