Skip to content

Commit

Permalink
Added boilerplate, pass one.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandervoord committed Apr 15, 2024
1 parent 1765fc8 commit 1b0e4eb
Show file tree
Hide file tree
Showing 440 changed files with 3,192 additions and 28 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

---
# Continuous Integration Workflow: Test case suite run + validation build check
name: CI
Expand Down
7 changes: 7 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

# This is the configuration used to check the rubocop source code.

#inherit_from: .rubocop_todo.yml
Expand Down
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

source "http://rubygems.org/"

gem "bundler"
Expand Down
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/usr/bin/env rake
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

require 'bundler'
require 'rspec/core/rake_task'

Expand Down
6 changes: 6 additions & 0 deletions assets/ceedling
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/bash
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

ruby vendor/ceedling/bin/ceedling $*
7 changes: 7 additions & 0 deletions assets/example_file.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "example_file.h"

int add_numbers(int a, int b) {
Expand Down
7 changes: 7 additions & 0 deletions assets/example_file.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#ifndef EXAMPLE_FILE_H
#define EXAMPLE_FILE_H

Expand Down
7 changes: 7 additions & 0 deletions assets/example_file_call.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "example_file_call.h"
#include "example_file.h"

Expand Down
7 changes: 7 additions & 0 deletions assets/example_file_call.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#ifndef EXAMPLE_FILE_CALL_H
#define EXAMPLE_FILE_CALL_H

Expand Down
7 changes: 7 additions & 0 deletions assets/project_as_gem.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

---
:project:
# how to use ceedling. If you're not sure, leave this as `gem` and `?`
Expand Down
7 changes: 7 additions & 0 deletions assets/project_with_guts.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

---
:project:
# how to use ceedling. If you're not sure, leave this as `gem` and `?`
Expand Down
7 changes: 7 additions & 0 deletions assets/project_with_guts_gcov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

---
:project:
# how to use ceedling. If you're not sure, leave this as `gem` and `?`
Expand Down
7 changes: 7 additions & 0 deletions assets/test_example_file.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "unity.h"
#include "example_file.h"

Expand Down
7 changes: 7 additions & 0 deletions assets/test_example_file_boom.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "unity.h"
#include "example_file.h"

Expand Down
7 changes: 7 additions & 0 deletions assets/test_example_file_sigsegv.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include <signal.h>
#include "unity.h"
#include "example_file.h"
Expand Down
7 changes: 7 additions & 0 deletions assets/test_example_file_success.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "unity.h"
#include "example_file.h"

Expand Down
7 changes: 7 additions & 0 deletions assets/test_example_file_unity_printf.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "unity.h"
#include "example_file.h"
#include <stdio.h>
Expand Down
7 changes: 7 additions & 0 deletions assets/test_example_file_verbose.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "unity.h"
#include "example_file.h"
#include <stdio.h>
Expand Down
7 changes: 7 additions & 0 deletions assets/test_example_file_with_mock.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "unity.h"
#include "example_file_call.h"
// mock header should have higher priority than real file
Expand Down
7 changes: 7 additions & 0 deletions assets/test_example_with_parameterized_tests.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "unity.h"

#define TEST_CASE(...)
Expand Down
7 changes: 7 additions & 0 deletions assets/tests_with_defines/src/adc_hardware.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "adc_hardware.h"
#include "adc_hardware_configurator.h"

Expand Down
7 changes: 7 additions & 0 deletions assets/tests_with_defines/src/adc_hardware.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#ifndef _ADCHARDWARE_H
#define _ADCHARDWARE_H

Expand Down
7 changes: 7 additions & 0 deletions assets/tests_with_defines/src/adc_hardware_configurator.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "adc_hardware_configurator.h"

#ifdef SPECIFIC_CONFIG
Expand Down
7 changes: 7 additions & 0 deletions assets/tests_with_defines/src/adc_hardware_configurator.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#ifndef _ADCHARDWARECONFIGURATOR_H
#define _ADCHARDWARECONFIGURATOR_H

Expand Down
7 changes: 7 additions & 0 deletions assets/tests_with_defines/test/test_adc_hardware.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "unity.h"
#include "adc_hardware.h"
#include "mock_adc_hardware_configurator.h"
Expand Down
7 changes: 7 additions & 0 deletions assets/tests_with_defines/test/test_adc_hardware_special.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

#include "unity.h"
#include "adc_hardware.h"
#include "mock_adc_hardware_configurator.h"
Expand Down
7 changes: 7 additions & 0 deletions assets/uncovered_example_file.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* =========================================================================
Ceedling - Test-Centered Build System for C
ThrowTheSwitch.org
Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */

// This file is to test abort on uncovered files feature

int multiply_numbers(int a, int b) {
Expand Down
7 changes: 7 additions & 0 deletions bin/actions_wrapper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

require 'thor'
require 'fileutils'

Expand Down
6 changes: 6 additions & 0 deletions bin/app_cfg.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

# Create our global application configuration option set
# This approach bridges clean Ruby and Rake
Expand Down
6 changes: 6 additions & 0 deletions bin/ceedling
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env ruby
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

require 'rubygems'

Expand Down
7 changes: 7 additions & 0 deletions bin/cli.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

require 'thor'
require 'ceedling/constants' # From Ceedling application

Expand Down
7 changes: 7 additions & 0 deletions bin/cli_handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

require 'ceedling/constants' # From Ceedling application

class CliHandler
Expand Down
7 changes: 7 additions & 0 deletions bin/cli_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

require 'rbconfig'
require 'ceedling/constants' # From Ceedling application

Expand Down
7 changes: 7 additions & 0 deletions bin/configinator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

require 'deep_merge'

class Configinator
Expand Down
7 changes: 7 additions & 0 deletions bin/mixinator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

require 'deep_merge'

class Mixinator
Expand Down
6 changes: 6 additions & 0 deletions bin/objects.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================

# Loaded from ceedling/lib
file_wrapper:
Expand Down
Loading

0 comments on commit 1b0e4eb

Please sign in to comment.