SimonHF's Blog

Just another site

Screencast: Building libsxe March 27, 2011

Filed under: Uncategorized — simonhf @ 8:09 pm
Tags: , , , , , ,

Screencast: Building libsxe
Screencast: Click to play HD full-screen

I thought I’d try something new. So here’s a screencast showing how to download, build, and test libsxe on 64 bit Ubuntu. I also explain a bit about the layout of the libsxe source files and the various sub-libraries. Building the release, debug, and coverage targets for libsxe from scratch — including running the well over 1,000 tests on each target and enforcing 100% code coverage — takes about 1 minute 20 seconds in total on my VMware installation of Ubuntu. Quite fast but could be faster. The build is currently executed using consecutive steps. It’s on the ‘to do’ list to parallelize the build and make use of multiple cores to speed things up even more. The tests run so fast already — even on a single core — because we do sneaky things like faking time and mocking system calls to easily reproduce the most difficult to reproduce error conditions.


2 Responses to “Screencast: Building libsxe”

  1. phuong Says:

    Can libsxe compile on windows with msvc ?, I looking for an alternate front end web server, since my backend code is lua libsxe fit better than node.js

    • simonhf Says:

      Yes it can be compiled with MSVC on Windows. It can also be compiled with gcc too. If you choose MSVC then there is no code coverage build because there’s no easy way to automate code coverage with the MS tool chain. So only the ‘coverage’ build on Windows only compiles with gcc. HTH.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s